<?php

class modelExmember extends modelBase
{
    public function selectTest()
    {
        $sSql = 'select * from ex_article';
        return $this->query($sSql);
    }
    
    public function insertTest($sSubject, $sContents)
    {
        $sSql = "insert into ex_article(
                    subject, contents, regdate
                ) values (
                    '".$sSubject."', '".$sContents."', now()
                )";
        
        return $this->query($sSql);
    }
}